VLScgSetShareLimit and VLScgSetTeamLimit

Syntax 

In case of a non-capacity license:

int VLScgSetShareLimit (VLScg_HANDLE iHandle, codeT *codeP,  char *decimalNUM);

In case of a capacity license, you need to use the VLScgSetTeamLimit macro, which is a wrapper to the VLScgSetShareLimit API:

int VLScgSetTeamLimit (VLScg_HANDLE iHandle, codeT *codeP,  char *decimalNUM);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

decimalNUM

Controls the number of users/clients who can share a single license. Use a decimal numeric value setting to control the number of users that can share a license. VLScg_NOLIMIT_STRING for unlimited.

Description

If license sharing is set, multiple users or a single user running multiple instances of your application, can share a license.

This function restricts the number of clients who can share a license. The decimalNUM limit forces the issuing of a new license, when the sharing limit has been reached for a non-capacity license or when the team limit has been reached for a capacity license.

We recommend you use VLScgSetShareLimit for a non-capacity license and VLScgSetTeamLimit for a capacity license.

Returns

The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:

Error Code Description

VLScg_INVALID_INT_TYPE

The value is not numeric.

VLScg_EXCEEDS_MAX_VALUE

The value exceeds the maximum value set.

VLScg_LESS_THAN_MIN_VALUE

The value is lower than the minimum value set.

For the complete list of the error codes, refer to License Generation and Revocation Error Codes .